package com.simple.business.domain.entity.user;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.github.zuihou.base.entity.SuperEntity;
import com.simple.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @desc
 * @Author Simple
 * @Date 2024/7/30 14:22
 **/
@Data
@NoArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@TableName("c_user_baby")
@ApiModel(value = "UserBaby", description = "用户孩子关系表")
@AllArgsConstructor
public class UserBaby extends SuperEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("姓名")
    @TableField(value = "user_id")
    private Long userId;

    @ApiModelProperty("姓名")
    @TableField(value = "baby_id")
    private Long babyId;

    @ApiModelProperty("是否删除")
    @TableField(value = "deleted")
    @Excel(name = "是否删除")
    private Boolean deleted;

    public UserBaby(Long userId, Long babyId) {
        this.userId = userId;
        this.babyId = babyId;
    }
}
